#ifndef OTODAY_H
#define OTODAY_H

#include <QWidget>
#include <QPainter>
#include <QColor>
#include <QImage>
#include <QTimer>
#include <QPaintEvent>
#include <QMouseEvent>

#include "tWidget.h"

#include <qemenu.h>
#include <qewidget.h>
//#include <qelineedit.h>
#include <QAction>

class oToDay : public QWidget{
  Q_OBJECT
  public:
    oToDay(QWidget * parent = 0);
    ~oToDay();

  protected:
    void paintEvent(QPaintEvent * envet);
    void mousePressEvent(QMouseEvent * e);
    void mouseReleaseEvent(QMouseEvent * e);

  private:
    QString wallpaper;
    QBar * bar;
  //  QELineEdit * line;
    void PreferApp();
    QTimer * timer;
    int ptime;
    QEMenu *widgetMenu;

  private slots:
    void appsClick();
    void tupdate();

  signals:
    void longPress();

};

#endif // OTODAY_H
